package imageManager.service;


import javax.xml.ws.Endpoint;

public class EndpointService {
	public static void main(String[] args) {
		Endpoint endpoint = Endpoint.publish("http://localhost:8182/ImageManager", new ImageManager(2, "Server1"));

		//Serveur de 30 minutes pour le moment
		try {
			Thread.sleep(1000 * 60 * 30);
		} 
		catch (Exception e) {
			e.printStackTrace();
		}
		
		endpoint.stop();
	}
}
